<%--
  Created by IntelliJ IDEA.
  User: 71209
  Date: 2024/11/15
  Time: 15:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%-- 如果有消息，显示弹窗并跳转到登录页面 --%>
<% String message = (String) request.getAttribute("message"); %>
<% if (message != null) {}%>

<%--<script>--%>
<%--    alert(' 注册成功 '); // 弹窗提示--%>
<%--    window.location.href = '/index.jsp'; // 跳转到登录页面--%>
<%--</script>--%>

<html lang="en" class="fullscreen-bg">
<head>
    <style>
        body {
            margin: 0;
            height: 80vh;
            background-image: url('assets/img/login-bg.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            position: relative;
        }

        body::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            height: 880px;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: -1;
        }

        .auth-box{
            position: absolute;
            z-index: 2;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            margin-top: 150px;
        }

        .left{
            position: absolute;
            z-index: 5;
            width: 500px;
            height: 520px;
            margin-top: -10px;
            margin-left: -180px;
            background-color: #FFFFFF;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
            .content{
                width: 500px;
                height: 600px;
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: column;
            }
        }

        .right{
            position: absolute;
            z-index: 3;
            width: 1000px;
            height: 500px;
            background-color: #0c8ec3;
            .loginbg{
                position: absolute;
                z-index: 4;
                width: 100%;
                height: 100%;
                opacity: 0.2;
            }
            .content-text{
                color: #FFFFFF;
                display: flex;
                justify-content: space-between;
                .text11{
                    height: 500px;
                    width: 60px;
                    font-size: 38px;
                    margin-top: 20px;
                    margin-left: 20px;
                }
                .text22{
                    position: relative;
                    height: 500px;
                    width: 320px;
                    font-size: 20px;
                    p{
                        position: absolute;
                        bottom: -10px;
                        right: 20px;
                        text-align: right;
                        height: 60px;
                        width: 320px;
                    }
                }
            }
        }

        .content{
            position: relative;
        }
        .header{
            position: absolute;
            top: 75px;
            left: 0;
            width: 500px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            font-size: 22px;
            .logo > img{
                width: auto;
                height: 30px;
            }
            .lead{
                color: #9d9d9d;
                margin-top: 5px;
            }
        }

        .form-auth-small{
            margin-top: 30px;
            width: 500px;
            height: 300px;

            .form-group11{
                width: 500px;
                height: 40px;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-top: 12px;
                label{
                    font-size: 20px;
                }
                input{
                    width: 300px;
                    height: 35px;
                }
                select{
                    width: 300px;
                    height: 35px;
                }
            }
        }

        .btnbox{
            margin-left: 52px;
            .btn{
                width: 160px;
                height: 42px;
                border: 0;
                background-color: #0ea0db;
                color: #FFFFFF;
                font-size: 20px;
                font-weight: bold;
                margin-top: 30px;
                margin-left: 23px;
            }
            .btn:hover{
                background-color: #9acfea;
            }
        }
    </style>
</head>

<body style="margin: 0">
<!-- WRAPPER -->
<div id="wrapper">
    <div class="vertical-align-wrap">
        <div class="vertical-align-middle">
            <div class="auth-box ">
                <div class="left">
                    <div class="content">
                        <div class="header">
                            <div class="logo text-center"><img src="assets/img/logo-dark.png" alt="Klorofil Logo"></div>
                            <p class="lead">请注册账号</p>
                        </div>
                        <form class="form-auth-small" action="/studentSociety/student/register" method="post">
                            <div class="form-group11">
                                <label for="studentName">姓名&nbsp;</label>
                                <input type="text" id="studentName" name="studentName" placeholder="请输入姓名" />
                            </div>
                            <div class="form-group11">
                                <label for="studentNumber">学号&nbsp;</label>
                                <input type="text" id="studentNumber" name="studentNumber" placeholder="请输入学号" />
                            </div>
                            <div class="form-group11">
                                <label for="gender">性别&nbsp;</label>
                                <select id="gender" name="gender">
                                    <option value="男">男</option>
                                    <option value="女">女</option>
                                </select>
                            </div>
                            <div class="form-group11">
                                <label for="password">密码&nbsp;</label>
                                <input type="password" id="password" name="password" placeholder="请输入密码" />
                            </div>

                            <div class="btnbox">
                                <button type="reset" class="btn btn-primary btn-lg btn-block">重&nbsp;置</button>
                                <button type="submit" class="btn btn-primary btn-lg btn-block">注&nbsp;册</button>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="right">
<%--                    <image class="loginbg" src="assets/img/login-bg.jpg" alt=""></image>--%>
                    <div class="overlay"></div>
                    <div class="content-text">
                        <div class="text11"><b>学生协会管理系统</b></div>
                        <div class="text22">
                            <p><b>5 组</b>作品<br>
                                组员:<b>张瑞，郭小雨，马铭涛</b></p>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>

<%--    <script>--%>
<%--        let message = '';--%>
<%--        if(message != "" && message != 'null'){--%>
<%--            alert("重新登录");--%>
<%--        }--%>
<%--    </script>--%>

</div>
<!-- END WRAPPER -->
</body>

</html>
